package com.fs.service;

import com.fs.pojo.ClassPaper;
import com.fs.pojo.Paper;
import com.fs.pojo.Questions;
import com.fs.pojo.Paper;
import com.fs.vo.ClassPaperVO;
import com.fs.vo.CourseClassVO;

import java.util.List;

/**
 * (TbPaper)表服务接口
 *
 * @author makejava
 * @since 2022-11-15 10:22:33
 */
public interface PaperService {

    /**
     * 根据classId和type对应查询发布的试题卷
     * @param classId
     * @param type
     * @return
     */
    List<ClassPaperVO>  queryAllPapersByClassIdAndType(String classId,Integer type);

    /**
     * 创建并添加新试题
     * @param paper 试题对象
     * @return
     */
    public int insertNewPaper(Paper paper, String paperId, List<Questions> questionses);

    /**
     * 查找课程名和课程下的所有班级通过老师id
     * @return
     */
    List<CourseClassVO> qurycourseNameAndClassByTeacherId(String teacherId);

    List<Paper> queryByTeacherId(String teacherId);

    int deleteById (String id);

    int deleteAll (String id);
}
